package org.snare.alumni.modules.admin.student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.snare.spider.cobweb.common.util.ValidGroup;
import org.snare.spider.core.db.base.BaseEntity;
import org.snare.spider.web.annotation.Dict;

import javax.validation.constraints.NotBlank;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sch_student")
public class StudentEntity extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String uid;

    @NotBlank(message = "姓名不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String name;

    private String status;
    /**
     * 毕业年份
     */
    @NotBlank(message = "毕业年份不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String graduationYear;
    /**
     * 在校职位
     */
    @NotBlank(message = "在校职位不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String position;
    /**
     * 毕业班级
     */
    @NotBlank(message = "毕业班级不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String graduationClass;


}
